<?php
/**
 * Created by PhpStorm.
 * User: bevan
 * Date: 2018/1/3
 * Time: 下午1:46
 */

namespace app\user\model;

use think\Model;

class UserTokenModel extends Model
{
    public function getUinfo($key = ''){
        if($key){
            return $this->where('token', cmf_get_token())->value($key);
        }
        return $this->where('token', cmf_get_token())->find();
    }
}
